package com.zrf.base.knowledge.guava;

import com.google.common.base.Preconditions;

/**
 * @author zhouruifeng
 *         Created by zhouruifeng on 2017/7/17.
 */
public class PreconditionsTest {
    public static void main(String[] args) {
//        Preconditions.checkArgument(false);//java.lang.IllegalArgumentException
//        Preconditions.checkArgument(false, "test");//java.lang.IllegalArgumentException: test
//        Preconditions.checkState(false);//java.lang.IllegalStateException
//        Preconditions.checkNotNull(null);//java.lang.NullPointerException
    }
}
